package com.gnerv.battle.boot.project.guard.model.dto;

import com.gnerv.battle.boot.project.guard.model.bo.MonitorMiddlewareBO;
import lombok.Data;
import org.springframework.beans.BeanUtils;

@Data
public class MonitorMiddlewareUpdateDTO {
    
    private String ukId;
    private String name;
    private String type;
    private String version;
    private String arguments;
    private String template;
    private String status;
    private Integer sort;

    public MonitorMiddlewareBO toMonitorMiddlewareBO(){
        MonitorMiddlewareBO monitorMiddlewareBO = new MonitorMiddlewareBO();
        BeanUtils.copyProperties(this, monitorMiddlewareBO);
        return monitorMiddlewareBO;
    }

}

